home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 11 / Cream of the Crop 11-1.iso / utility / horst_2.zip / PCHECK.DOC < prev    next >
Text File  |  1995-12-18  |  1KB  |  33 lines

  1. ------------------------------------------------------------------------
  2. PCHECK  printer check, reset                    (c) 1995 Horst Schaeffer
  3. ------------------------------------------------------------------------
  4.  
  5. PCKECK checks if the printer is ready. Reset Option.
  6. Will only work for parallel printer ports.
  7.  
  8. Syntax: PCHECK [options]
  9.  
  10.         Option /R  printer (hardware) reset
  11.                /N  (n=1..4) printer device number (default=1)
  12.  
  13.         Errorlevel 0     printer is ready
  14.                    else  not ready
  15.  
  16. With Option /R the printer may return "not ready" because it usually
  17. takes a few seconds until the reset is done.
  18.  
  19. If you care:
  20. A non-zero errorlevel represents the status bit pattern:
  21.  
  22.         bit         decimal             status
  23.          0              1               time out
  24.          3              8               I/O error
  25.          4             16               NOT online
  26.          5             32               paper out
  27.          7            128               NOT ready
  28.  
  29. The errorlevel is the sum of the decimal values for bits set.
  30. There is no general rule, which combination will be reported.
  31.  
  32. = 17 MAY 1995
  33.